package com.omg.server.framework.service.impl;

import java.io.Serializable;
import java.sql.Connection;
import java.util.List;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.orm.ibatis.SqlMapClientTemplate;

import com.omg.server.framework.dao.FacadeDAO;
import com.omg.server.framework.service.IDefaultService;
import com.omg.server.framework.vo.ValueObject;

public class DefaultService implements IDefaultService {

	private FacadeDAO facadeDao;
	
	public FacadeDAO getFacadeDao() {
		return facadeDao;
	}

	public void setFacadeDao(FacadeDAO facadeDao) {
		this.facadeDao = facadeDao;
	}

	@Override
	public Connection getConnection() {
		// TODO Auto-generated method stub
		return facadeDao.getConnection();
	}

	@Override
	public int save_Hibernate_Object(ValueObject vo) {
		return facadeDao.save_Hibernate_Object(vo);
	}

	@Override
	public int save_iBatis(String queryName, Object[] params) {
		return facadeDao.save_iBatis(queryName, params);
	}

	@Override
	public int save_JDBC(String queryName, Object[] params) {
		return facadeDao.save_JDBC(queryName, params);
	}

	@Override
	public int delete_Hibernate_Object(ValueObject vo) {
		return facadeDao.delete_Hibernate_Object(vo);
	}

	@Override
	public int deleteByID_Hibernate_Object(Class paramClass, Serializable id) {
		return facadeDao.deleteByID_Hibernate_Object(paramClass, id);
	}

	@Override
	public int delete_JDBC(String queryName, Object[] params) {
		return facadeDao.delete_JDBC(queryName, params);
	}

	@Override
	public int delete_iBatis(String queryName, Object[] params) {
		return facadeDao.delete_iBatis(queryName, params);
	}

	@Override
	public int delete_Hibernate_NamedQuery(String queryName, Object[] params) {
		return facadeDao.delete_Hibernate_NamedQuery(queryName, params);
	}

	@Override
	public int update_Hibernate_Object(ValueObject vo) {
		return facadeDao.update_Hibernate_Object(vo);
	}

	@Override
	public int update_JDBC(String queryName, Object[] params) {
		return facadeDao.update_JDBC(queryName, params);
	}

	@Override
	public int update_iBatis(String queryName, Object[] params) {
		return facadeDao.update_iBatis(queryName, params);
	}

	@Override
	public int update_Hibernate_NamedQuery(String queryName, Object[] params) {
		return facadeDao.update_Hibernate_NamedQuery(queryName, params);
	}

	@Override
	public ValueObject findByID_Hibernate_Load(Class paramClass, Serializable id) {
		return facadeDao.findByID_Hibernate_Load(paramClass, id);
	}

	@Override
	public ValueObject findByID_Hibernate_Get(Class paramClass, Serializable id) {
		return facadeDao.findByID_Hibernate_Get(paramClass, id);
	}

	@Override
	public ValueObject findByID_Hibernate_NamedQuery(String queryName, Serializable id) {
		return facadeDao.findByID_Hibernate_NamedQuery(queryName, id);
	}

	@Override
	public ValueObject findByID_Hibernate_ComposedHQL(String queryName, Serializable id) {
		return facadeDao.findByID_Hibernate_ComposedHQL(queryName, id);
	}

	@Override
	public ValueObject findByID_iBatis(String paramString, Serializable id) {
		return facadeDao.findByID_iBatis(paramString, id);
	}

	@Override
	public List findAll_Hibernate_Object(Class paramClass) {
		return facadeDao.findAll_Hibernate_Object(paramClass);
	}

	@Override
	public List findAll_JDBC(String paramString) {
		return facadeDao.findAll_JDBC(paramString);
	}

	@Override
	public List findAll_iBatis(String paramString) {
		return facadeDao.findAll_iBatis(paramString);
	}

	@Override
	public List findAll_Hibernate_ComposedHQL(String paramString) {
		return facadeDao.findAll_Hibernate_ComposedHQL(paramString);
	}

	@Override
	public List findAll_Hibernate_NamedQuery(String paramString) {
		return facadeDao.findAll_Hibernate_NamedQuery(paramString);
	}

	@Override
	public List findAll_Hibernate_NamedQuery(String paramString, Object[] params) {
		return facadeDao.findAll_Hibernate_NamedQuery(paramString, params);
	}

	@Override
	public List find_iBatis(String queryName, Object param, int offset, int size) {
		return facadeDao.find_iBatis(queryName, param, offset, size);
	}

	@Override
	public List find_iBatis(String paramString, Object paramObject) {
		return facadeDao.find_iBatis(paramString, paramObject);
	}

	@Override
	public HibernateTemplate getHibernateTemplate() {
		return facadeDao.getHibernateTemplate();
	}

	@Override
	public JdbcTemplate getJdbcTemplate() {
		return facadeDao.getJdbcTemplate();
	}

	@Override
	public SqlMapClientTemplate getSqlMapClientTemplate() {
		return facadeDao.getSqlMapClientTemplate();
	}

}
